Learn R Programming

Compositional (version 5.5)

Contour plot of the Kent distribution in S^2: Contour plot of the Kent distribution in \(S^2\)

Description

Contour plot of the Kent distribution in \(S^2\).

Usage

kent.contour(G, param, n = 100, x = NULL, cont.line = FALSE)

Arguments

G

A 3 x 3 matrix whose first column is the mean direction. The second and third columns are the major and minor axes respectively.

param

A vector with the concentration \(kappa\) and ovalness \(\beta\) parameters (the \(\psi\) parameter has been absorbed inside the matrix G).

n

The number of grid points to consider over which the density is calculated.

x

This is either NULL (no data) or contains a 3 column matrix with compositional data.

cont.line

Do you want the contour lines to appear? If yes, set this TRUE.

Value

A ternary diagram with the points and the Dirichlet contour lines.

Details

The user can plot only the contour lines of a Dirichlet with a given vector of parameters, or can also add the relevant data should they wish to.

References

Graf, M. (2020). Regression for compositions based on a generalization of the Dirichlet distribution. Statistical Methods & Applications, (to appear).

See Also

compnorm.contour, bivt.contour, comp.kerncontour, mix.compnorm.contour

Examples

Run this code
# NOT RUN {
G <- matrix( c(0.05713382, 0.96029716, 0.27306608, -0.98809661,
0.01525976, 0.15307588, 0.1428314, -0.2785615, 0.9497382), ncol = 3 )
param <- c(2361.8401338, 1171.3808172, 0.1435577)
kent.contour(G, param)
# }

Run the code above in your browser using DataLab